<?php
$path=str_replace('\\','/',__FILE__);
$path=str_replace('/public/classes/header.php', '', $path);//根目录
require_once $path.'/config/config.php';